package com.wonders.framework.util.web;

import com.wonders.framework.web.context.GlobalContext;

/**
 * 上下文工具
 * 
 * @author WuBin
 * 
 */
public class ApplicationUtil {

	/**
	 * 获取bean
	 * 
	 * @param <T>
	 * @param clazz
	 *            类
	 * @return bean
	 */
	public static <T extends Object> T getBean(Class<T> clazz) {
		return GlobalContext.getApplicationContext().getBean(clazz);
	}

}
